home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
mail.altrad.com
/
2015.02.mail.altrad.com.tar
/
mail.altrad.com
/
TEST
/
office german
/
PROPLUS.WW
/
PROPLSWW.CAB
/
IPEDITOR.DLL
/
XSL
/
MERGE.XSL
< prev
next >
Wrap
Extensible Markup Language
|
2006-10-27
|
2KB
|
1 lines
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:wordhtml="http://www.w3.org/TR/REC-html40" version="1.0"> <xsl:output indent="yes" method="html" /> <xsl:param name="break" /> <xsl:template match="/"> <html> <head> <xsl:apply-templates select="$document0/xhtml:html/xhtml:head/xhtml:style" mode="stylecopy" /> </head> <body> </body> </html> </xsl:template> <xsl:template match="@*|node()" mode="copy"> <xsl:copy> <xsl:apply-templates select="@*|node()" mode="copy" /> </xsl:copy> </xsl:template> <xsl:template match="@*|node()" mode="skip"> <xsl:apply-templates select="@*|node()" mode="skip" /> </xsl:template> <xsl:template match="xhtml:body|wordhtml:body" mode="skip"> <xsl:if test="not(contains(@class, 'xdpmv0'))"> <xsl:if test="$break = 'No break'"> <xsl:element name="br" /> </xsl:if> <xsl:if test="$break = 'Horizontal line'"> <xsl:element name="hr" /> </xsl:if> <xsl:if test="$break = 'Page break'"> <xsl:element name="div"> <xsl:attribute name="style">PAGE-BREAK-AFTER: always</xsl:attribute> </xsl:element> </xsl:if> </xsl:if> <xsl:element name="div"> <xsl:apply-templates select="@*" mode="copyattr" /> <xsl:apply-templates select="@*|node()" mode="copy" /> </xsl:element> </xsl:template> <xsl:template match="text()" mode="stylecopy"/> <xsl:template match="xhtml:style[not(@languageStyle or @themeStyle)]" mode="stylecopy" priority="200"> <xsl:apply-templates select="." mode="copy" /> </xsl:template> <xsl:template match="xhtml:style[@languageStyle or @themeStyle]" mode="stylecopy" priority="100"> <xsl:apply-templates select="." mode="merge" /> </xsl:template> <xsl:template match="xhtml:style" mode="merge"> <xsl:copy> <xsl:apply-templates select="@*" mode="copyattr" /> <xsl:apply-templates select="text()" mode="copy" /> <xsl:if test="@languageStyle"> </xsl:if> <xsl:if test="@themeStyle"> </xsl:if> </xsl:copy> </xsl:template> <xsl:template match="@*" mode="copyattr"> <xsl:copy /> </xsl:template> </xsl:stylesheet>